import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Keyinf1 extends Applet implements KeyListener {
public void init()
{
addKeyListener(this);
}
public void keyPressed(KeyEvent e)
{
showStatus("Key pressed");
}
public void keyReleased(KeyEvent e)
{
showStatus("Key Released");
}
public void keyTyped(KeyEvent e)
{
showStatus("Key Typed");
}
}