Edited some code in nsAppShell.cpp, HW keyboard part