Undid previous commit
Added lua function to check if a key is pressed