Renamed key states to PRESSED and RELEASED