def getkeypress(self):
        u'''Return next key press event from the queue, ignoring others.'''
        ck = System.ConsoleKey
        while 1:
            e = System.Console.ReadKey(True)
            if e.Key == System.ConsoleKey.PageDown: #PageDown
                self.scroll_window(12)
            elif e.Key == System.ConsoleKey.PageUp:#PageUp
                self.scroll_window(-12)
            elif str(e.KeyChar) == u"\000":#Drop deadkeys
                log(u"Deadkey: %s"%e)
                return event(self, e)
            else:
                return event(self, e)