fixed getkeycount