Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Read the source. If it supports BIOS interrupts, you will be able to figure that out. If you learn how the source works and how hardware works, you will learn how to catch keypresses.