Skip to content
Sign upLog in
← Back to Community

How to do arrows and key presses

Profile icon
Bunnytoes

How if someone presses an arrow key, how can I know, and also how when someone presses a key, the user doesn't have to enter it

Voters
Profile icon
Bunnytoes
Comments
hotnewtop
Profile icon
Geocube101

What language?

Profile icon
Bunnytoes

@Geocube101
java

Profile icon
Geocube101

@Bunnytoes
You may have to use java swing. All of the sites I've looked at seem to be unable to listen to raw key events without an intermediary like a java swing JFrame.

Profile icon
Bunnytoes

@Geocube101
ok, well thanks for trying to help

Profile icon
Highwayman

Remember to provide context to your questions- preferably a repl if you have one.

Profile icon
Bunnytoes

@Highwayman
ok