catching coded keys