Any way to check if any key was pressed?

BlitzMax Forums/BlitzMax Programming/Any way to check if any key was pressed?

Yes I know that.

But I want to check on my main loop if anykey are pressed to execute some function asociated with some behavior of my sprite and pass the value of keys to the function.