I'm using the Greenfoot.ask() method to set my static string variable 'lastKey' to whatever the last key pressed was. This works, however, when I try to use this with an If() statement ( if ( lastKey == "w" ) ) it doesn't work. Any reason?
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)
if ("w".equals(lastKey))