public InputField() {
        super(510);
        setMaximumSize( new Dimension(0, 28) );
        setFocusTraversalKeysEnabled(false);

        addActionListener( new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                handleInputText();
            }
        });

        addKeyListener( new KeyAdapter() {
            @Override
            public void keyPressed(KeyEvent e) {
                switch ( e.getKeyCode() ) {
                    case KeyEvent.VK_DOWN:
                    case KeyEvent.VK_UP:
                        browseHistory(e); break;
                    case KeyEvent.VK_TAB:
                        completeNickname(e); break;
                }
            }
        });
    }