Create a simple java applet that illustrate KeyAdapter class very simply

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class KeyAdapters extends Applet {
    public void init()
    {
        addKeyListener(new Adp());
    }
    private class Adp extends KeyAdapter
    {
        public void keyPressed(KeyEvent e)
        {
            showStatus("Key pressed");
        }
        public void keyReleased(KeyEvent e)
        {
            showStatus("Key Released");
        }

    }

}