R7 sc.escape_test(False) needs two ESC presses, why?

Hi, I needed to figure out why ESC wasn’t working right away, so I made a simple script to test it out. And every time I need to press ESC two times for it to break. Anybody know why? is it a bug?

import rhinoscriptsyntax as rs
import scriptcontext as sc
n = 0
while True:
    n += 1
    if n>50:
        print "Limit reached"
    if sc.escape_test(False) :
        print "ESC"

Any more love on this, @Holo?