keydown event for mac os