Cleanups.
Fixed a bug introduced in kbd.c where bit was not reinitialized at the
right time.
Make nextpart a pointer to function.
findtag_part can now be static.