http://mbed.org/users/gj_schoneveld/code/keypad/#873a9a452ef1