This is probably a stupid question, but I couldn't find it anywhere else.

I know there is a way, but I'm new to the language...anyway.

I'm trying to make it so that both a button press and the enter key will both call the same function, and I can get the button working find...but I don't know how to 'detect' if the enter key is down. I know of ways, but there must be something very simple that I'm overlooking...

thankks for the help.