Realised how poorly worded my question was so I'm reposting it for ease on all parties.
I've been working on a project for a while, and have come to an annoying standstill. I'm looking for a browser based solution that will allow me to, when pushing a button on a keyboard, send a value to a MySQL database. AJAX is probably the thing that will help me most but I have no idea how to implement it this way, any insight would be great! Hope I'm not aiming for the impossible here, thanks to anyone who replies!