Moved osd key processing into osd.c