fixed duplicate entries in keyboard tasks
replaced hard-coded register numbers with constants

also re-worked the battery reading code a bit
also show polling rate in Hz