simulate long-key checks

Hello @x-ma, 

Please review the following commits I made in branch 'nick-longkeys'.

03df5ccacf626bf5c85480b46812570f2c489a3d (2014-07-09 01:06:27 -0400)
simulate long-key checks

R=@x-ma