function to monitor keyboard buttons not written yet