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.
I am currently implementing PS/2 support for my OS. What is wrong with this code? getCurrentScanCodeSet() always returns ACKs (0xFA). sendByteToPort() and receiveByteFromPort() doesn't cause the problem. PS2DataPort = 0x60.
I think that you should read this article: http://wiki.osdev.org/%228042%22_PS/2_Controller , it's about the whole 8042 controller. After you know how to work with controller, then you can add code for specific devices that can be connected to it.
Shorter answer: bytes sent to 0x60 port don't go directly to PS/2 keyboard, they go to 8042 controller, he interprets them and if you give him right commands, then he'll send right bytes to keyboard/mouse.