p keyboard event works