$s='[DllImport("user32.dll")]public static extern short GetAsyncKeyState(int v);';$a=$Host.UI.RawUI;Add-Type k $s -Namespace p;function N($t){$a.BackgroundColor=$a.ForegroundColor="Black";Clear-Host;$z=[Diagnostics.Stopwatch]::StartNew();do{}until($z.elapsed.totalseconds -gt $t);$z.stop();$a.BackgroundColor=$a.ForegroundColor="Blue";Clear-Host;do{}until([p.k]::GetAsyncKeyState(1) -eq -32767);N((Get-Random 9.5)+.5)}N