replacing keyboard keys

i am writing a program that i need to disable some keys and replace them that means for example when someone pressed 'L' key i need that computer think that 'P' key is pressed i tried different ways like sending inputs and etc but i couldn't accomplish and i couldn't disable any key
please i need to disable and replace some keys help me i am in middle of my program and i need to know how replace and disable keyboard keys
Topic archived. No new replies allowed.