added some mouse and keyboard actions