title: Background c program for keyboard mapping
body: <p>I have installed a Bramma TTF file in my windows 8 system. Through a windows character map, I was able to find individual character code. Attached below the screenshot of the map. We can see at the right bottom side, the character code for "!" is 0x21. Similarly, I can find all the character code of all other letters.</p>
  
  <p><img src="https://i.stack.imgur.com/tdlRl.png" alt="Character map for Bramma TTF"> </p>
  
  <p>Now I defined a character mapping for this font with my US based keyboard layout. For example, I mapped physical character 'a' in the keyboard to the character shown in 3rd row and 1st column. [whenever I hit 'a' from the keyboard, the corresponding character has to be displayed]</p>
  
  <p>I would like to write a background C program such that it listens the keyboard hit and as per my previously defined character mapping, my C program should output that mapped character. i.e., when i hit character 'a' from the keyboard it should return the mapped character.</p>
  
  <p>Can any one help me out in solving this problem or else just give me a lead towards the solution.</p>