That was really close to what I needed. Thanks a bunch! Here’s the meat of what I came up with (It would be nicer to just use a “||”):
function OnMouseEnter() {
if (Input.anyKey){
myFunction();
}
}
function OnMouseOver() {
if (Input.anyKeyDown){
myFunction();
}
}
function myFunction(){
//do something
}