[PD] how to receive keyboard inputs