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?
if ("w".equals(lastKey))