#issue-680 and #issue-681

fixed scale bug #issue-680

#issue-681 support a keyboard for mac