adding keypress for doc render closes #231