removed unnecessary mouse and keyboard event functions