Fixed hardware keyboard bugs. This is mainly for use on emulators as no one has a hardware keyboard on android.