Use a Timer. (System-tab)
Put in a 2000-Interval and set it Enabled:=false;
in the onKeyUp Event you just put in Timer1.Enabled:=true;
The Timer-Event should be like this:
Delphi-Quelltext
1: 2: 3: 4: 5:
| procedure TForm1.Timer1Timer(Sender: TObject); begin Label1.Visible:=false; Timer1.Enabled:=false; end; |
So after the timer is enabled, it would do the procedure every 2 seconds over and over again, that's why you deactivate it at once.
Should work this way and the program isn't frozen which is what sleep(2000) would do.
Oh, and: Please change the title of your topic so tells us what's your problem about

[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.